package mysql

import "gorm.io/gorm"

type Goods struct {
	gorm.Model
	UserId      int64   `gorm:"type:int(11);not null;comment:用户ID"`
	GoodsName   string  `gorm:"type:varchar(20);not null;comment:商品名称"`
	GoodsNumber int64   `gorm:"type:int(11);not null;comment:数量"`
	GoodsStock  int64   `gorm:"type:int(11);not null;comment:库存"`
	Price       float64 `gorm:"type:decimal(10,2);not null;comment:价钱"`
	Cover       string  `gorm:"type:varchar(30);not null;comment:封面"`
	Status      string  `gorm:"type:char(1);comment:状态:1正常2取消"`
}
